package entity;

public class Operator {
    private int id;
    private String name;
    private String password;
    private int managerId;
    private String managerName;

    public String getManagerName() {
        return managerName;
    }

    public void setManagerName(String managerName) {
        this.managerName = managerName;
    }

    public Operator() {
    }

    public Operator(int id, String name, String password, int managerId) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.managerId = managerId;
    }

    public Operator(String name, String password, int managerId) {
        this.name = name;
        this.password = password;
        this.managerId = managerId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getManagerId() {
        return managerId;
    }

    public void setManagerId(int managerId) {
        this.managerId = managerId;
    }

    @Override
    public String toString() {
        return "Operator{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", managerId=" + managerId +
                ", managerName='" + managerName + '\'' +
                '}';
    }
}
